// 渲染
let info = document.querySelector(".info")
$.ajax({
    url: "http://chst.vip:1234/api/getsitenav"
}).then(res => {
    console.log(res)
    let html = ""
    res.result.forEach(item => {
        html += ` <li navid=${item.navId}>
                    <a href="${item.navHref}">
                         <img src="${item.navImg}" alt="">
                         <span>${item.navTitle}</span>
                     </a>
                 </li>`
    });
    info.innerHTML = html
})